<?php
/*
       
*/

class index {
      private static $instance;
      
      // v konstruktoru se provedou vsechny operace
      private function __construct() {
            $this->run();
      }
      
      public static function getInstance() {
            if (is_null(self::$instance)) { 
                  self::$instance = new index();
            }
            return self::$instance;
      }
      
      private function run() {
            // tady bude napriklad vytvoreni pole akcnich produktu
            $actionArray = Array();
            require_once(PATH_VIEW.'/index.tpl.php');
      }
}
?>
